//#include <conio.h>
#include <curses.h>
#include <unistd.h>
#include <stdio.h>

int main()
{
	int ret;
	char str[1024];

	while (1) {
		//ret = getchar();
		//ret = getch();
		//ret = fgetc(stdin);
		////ret = getche();
		//printf("[%d]\n", ret);

		fgets(str, 2, stdin);
		printf("[%x][%x]\n", str[0], str[1]);
		usleep(500 * 1000);
	}
}
